#!/bin/bash

/etc/init.d/postgresql start
/etc/init.d/rabbitmq-server start

/usr/bin/expect<<EOF
spawn sh -c "sudo -u postgres psql"
expect "postgres#="
send "CREATE ROLE wh2 superuser login;\r"
expect "postgres#="
send "exit;\r"
expect EOF
EOF

sh /app/helios-server/reset.sh
celery -A helios worker
python manage.py runserver 0.0.0.0:8000
